package com.cn.xly2023.mapper;

import com.cn.xly2023.pojo.Goods;
import com.cn.xly2023.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper {
    Goods selectById(Integer id);

    List<Goods> selectAll();
    List<Goods> selectByPage(@Param("index") Integer index,
                            @Param("limit") Integer limit,
                            @Param("goodsname")String goodsname,
                            @Param("price")String price);

    int selectCount(@Param("goodsname")String goodsname,
                    @Param("price")String price);

    void deleteById(Integer id);

    void insert(@Param("goods") Goods goods);

    void updateById(@Param("goods")Goods goods);


}
